<%@ page import="TeachLesson.TeachLessonsDao" %>
<%@ page import="TeachLesson.techLessonEnity" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/17
  Time: 18:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>选课详细页面</title>
    <link href="/SystemerNav/SystemerNav.css" rel="stylesheet" type="text/css">
</head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<%
    ArrayList<techLessonEnity> lists=(ArrayList<techLessonEnity>) request.getAttribute("lists");
%>
<body background="/LoginInterface/loginFace.jpg">

    <div class="container">
    <table class="table table-hover">
        <tr>
            <td>课程号</td>
            <td>教师工号</td>
            <td>课程名</td>
            <td>教师姓名</td>
            <td>删除</td>
            <td>修改</td>
        </tr>
        <%
            for (techLessonEnity temp:lists) { %>
        <tr >
            <td><%=temp.getCourseNo()%></td>
            <td><%=temp.getWorkerNO()%></td>
            <td><%=temp.getCourseName()%></td>
            <td><%=temp.getWorkerName()%></td>
            <td><form action="/TeachLesson/deleteTeachLessonServlet" method="post">
                <input type="hidden" value="<%=temp.getWorkerNO()%>" name="workerNo">
                <input type="hidden" value="<%=temp.getCourseNo()%>" name="courseNo">
                <button type="submit" class="btn btn-danger">删除</button>
            </form>
            </td>
            <td>
                <form action="/educateOffice/updateTeachLesson.jsp" method="post">
                    <input type="hidden" value="<%=temp.getWorkerNO()%>" name="workerNo">
                    <input type="hidden" value="<%=temp.getCourseNo()%>" name="courseNo">
                    <button type="submit" class="btn btn-warning">修改</button>

                </form>
            </td>
        </tr>
        <%
            }%>
    </table>
</div>
</body>
</html>
